#include <stdio.h>
#include <time.h>
#include "updDispatchApi.h"

int main(void)
{
    char    dspIp[16] = "192.168.154.128";
    short   dspPort = 5001;
    char    service[32] = "updServer";
    char    srvIp[16] = {};
    short   srvPort = 0;
    time_t  start = time(NULL);
    unsigned count = 0;

    printf("srvIp:srvPort <===> time,count\n");
    while(1){
        dspGetService(dspIp, dspPort, service, srvIp, &srvPort);
        if(count % 5001 == 0){
            printf("%s:%d <===> %lu,%u\n", srvIp, srvPort, time(NULL) - start, count);
        }
        count++;
    }


    return 0;
}
